@extends('manager._layouts.default')
 
@section('main')
 
    <h2>Edit category</h2>

    {{ Notification::showAll() }}

    {{ Form::model($video,
        array(
            'method' => 'put', 
            'route' => array('manager.videos.update', $video->id)
        )) 
    }}
        
        <div class="row">
            <div class="row col-lg-12">
	            <div class="form-group col-lg-4">
	                <label for="title">Title</label>
	                <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="This is the friendly name of the category" data-container="body"></i>
	                <input type="text" id="title" name="title" value="<?=$video->title?>" class="form-control">
                </div>
	            <div class="form-group col-lg-4">
		            <label for="slug">Slug</label>
		            <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="This is the friendly URL of the category" data-container="body"></i>
		            <input type="text" id="slug" name="slug" value="<?=$video->slug?>" class="form-control">
	            </div>
	            <div class="form-group col-lg-5">
		            <label for="name">YouTube Link</label>
		            <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="Link to YouTube video" data-container="body"></i>
		            <div class="input-group">
			            <span class="input-group-addon">https://www.youtube.com/watch?v=</span>
			            <input type="text" id="youtube_link" name="youtube_link" value="<?=$video->youtube_link?>" class="form-control" placeholder="YouTube video ID">
		            </div>
	            </div>

            </div> 
        </div>

        <div class="row">
            <div class="col-lg-12">
                <button type="submit" class="btn btn-primary btn-large">Save</button>
                <a href="{{ URL::route('manager.videos.index') }}" class="btn btn-default btn-large">Cancel</a>
            </div>        
            
        </div>

    {{ Form::close() }} 

@stop